#include "InputManager.h"
#include "APIFactory.h"

using namespace gull::core;
using namespace std;

InputAPI* InputManager::s_inputAPI = NULL;

InputManager::InputManager()
{
	
	s_inputAPI = APIFactory::getInputAPI("glut");
#if DEBUG
	cout << "Input Manager Create" << endl;
#endif
}



InputManager::~InputManager()
{
#if DEBUG
	cout << "Input Manager Release" << endl;
#endif	
}


gullNotification 
InputManager::initInputContext()
{
	if(!s_inputAPI)
		return GULL_ERROR;
	
	s_inputAPI->initInputAPI();
	return GULL_OK;
}